import request from '@/utils/request'

export function saveRelatedInterview(cdId,selectedInterviewIdList) {
  return request({
    url: '/teaching/course_design_detail/related_interview/'+cdId,
    method: 'put',
    data: selectedInterviewIdList
  })
}
// 查询课程设计详情列表
export function listCourse_design_detail(query) {
  return request({
    url: '/teaching/course_design_detail/list',
    method: 'get',
    params: query
  })
}

// 查询课程设计详情详细
export function getCourse_design_detail(courseDesignForm) {
  return request({
    url: '/teaching/course_design_detail',
    method: 'get',
    params:courseDesignForm
  })
}

// 新增课程设计详情
export function addCourse_design_detail(data) {
  return request({
    url: '/teaching/course_design_detail',
    method: 'post',
    data: data
  })
}

// 修改课程设计详情
export function updateCourse_design_detail(data) {
  return request({
    url: '/teaching/course_design_detail',
    method: 'put',
    data: data
  })
}

// 删除课程设计详情
export function delCourse_design_detail(id) {
  return request({
    url: '/teaching/course_design_detail/' + id,
    method: 'delete'
  })
}
